import QtQuick 2.0
import DataMan 0.1

Text {
	text: "00"
	color: "white"
	font.pixelSize: 22
	font.bold: true
	property int type: -1

	function updateNum()
	{
		var n = DataMan.propN[type];
		if (n > 99)
			n = 99;
		text = "" + n;
	}

	Component.onCompleted: {
		updateNum();
	}
}
